Global Index
HTML5 JS API Index > DOM Tutorials & Specs

HTMLScriptElement

Extends HTMLElement.

The script element allows authors to include dynamic script and data blocks in their documents. The element does not represent content for the user.

Properties
boolean
async
The async IDL attribute controls whether the element will execute asynchronously or not. If the element's "force-async" flag is set, then, on getting, the async IDL attribute must return true, and on setting, the "force-async" flag must first be unset, and then the content attribute must be removed if the IDL attribute's new value is false, and must be set to the empty string if the IDL attribute's new value is true.
DOMString
charset
The IDL attributes src, type, charset, defer, each must reflect the respective content attributes of the same name.
DOMString
crossOrigin
The crossOrigin IDL attribute must reflect the crossorigin content attribute, limited to only known values.
boolean
defer
The IDL attributes src, type, charset, defer, each must reflect the respective content attributes of the same name.
DOMString
src
The IDL attributes src, type, charset, defer, each must reflect the respective content attributes of the same name.
DOMString
text
The IDL attribute text must return a concatenation of the contents of all the Text nodes that are children of the script element (ignoring any other nodes such as comments or elements), in tree order. On setting, it must act the same way as the textContent IDL attribute.
DOMString
type
The IDL attributes src, type, charset, defer, each must reflect the respective content attributes of the same name.
Referenced by
DocumentcurrentScript